<html>
<body onload="printpage()" >

<script language="Javascript">
<!--
function printpage() {

 window.print();
 this.close();
}


//-->
</script>

{% load report %}

{% div day 11 3.5 %}
{% div month 12 3.5 %}
{% div year 13 3.5 %}
{% div factura.cliente.nombre 3 5.4 %}
{% div factura.cliente.get_address_print 3 6 %}
{% div factura.cliente.cuit 10.5 7 %}
{% div factura.cliente.ingresos_brutos 11.7 7.6 %}
{% div factura.remito 11.5 8.1 %}
{% div "x" 6.7 7.2 %}
{% if cont %}
	{% div "x" 6 8 %}
{% else %}
	{% div "x" 8.9 8 %}
{% endif %}

{% init_rows printer 9.5 0.6 %}

{% for item in factura.items.all %}
	{% div_float_row printer item.cantidad 2.7 %}
	{% div_row printer item.producto.nombre 3.5  %}
	{% div_float_cuad_row printer item.precio_unitario_en_pesos 12.5 %}
	{% div_float_row printer item.importe_en_pesos 14.7  %}
	{% next_row printer %}


{% endfor%}


{% for item in factura.conceptos.all %}
	{% div_width_jus_row_adv  printer item.concepto 2.5 8.2 %}
	

	
		
	{% div_float_row printer item.importe 14.7  %}
	
	{% next_row printer %}
{% endfor%}

{% end_rows printer %}


{% if not factura.observaciones %}
	{% if factura.descuento %}
		{% div "Descuento" 3.5 14.7 %}
		{% div_float factura.descuento 14.7 14.7 %}
	{% endif%}
	{% if factura.recargo %}
		{% div "Recargo" 3.5 15.4 %}
		{% div_float factura.recargo 14.7 15.4 %}
	{% endif%}
{% endif%}
{% if factura.observaciones %}
	{% if factura.descuento %}
		{% div "Descuento" 3.5 13.5 %}
		{% div_float factura.descuento 14.7 13.5 %}
	{% endif%}
	{% if factura.recargo %}
		{% div "Recargo" 3.5 14.1 %}
		{% div_float factura.recargo 14.7 14.1 %}
	{% endif%}
{% endif %}


{% div factura.condicion_de_pago 4.5 16.3 %}
{% div_float factura.neto 14.7 16.3 %}
{% div_float "21.0" 12.0 17.1 %}
{% div_float factura.iva 14.7 17.1 %}
{% div_float factura.total 14.7 18 %}
{% if factura.observaciones %}
	{% div_width_jus factura.observaciones 2.5 14.7 8.2 %}	
{% endif %}

</body>
</html>
